/**
 *修改项目档案
 */
'use strict';

const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");

module.exports = async function (params) {
    let updateObj ={
        project_name:params.projectName,
        population:params.population,
        area:params.area
    }
    let updateSql = `UPDATE project_file SET ? WHERE project_id = ? AND domain_id = ?`;
    await conn(updateSql, [updateObj,params.projectId,params.userDomainId]);
    await operationRecord(params);
    return { success: true };
};
